
<div class="content_filtro">
    
    <div class="filtro">
        <form id="form_filtro" method="get" action="">
            <input type="text" id="dtfiltro" name="dtfiltro" value="<?php echo $this->dtfiltro; ?>" placeholder="Data" />

            <input type="submit" class="btn-pdr" name="buscar" value="buscar" />
        </form>
    </div>

    <h2><?php echo $this->titulo;?></h2>
</div>

<div class="content-list">
    
    <table id="tlist">
        <thead>
            <tr>
                <th>Data</th>
                <th>Usuário</th>
                <th>IP</th>
                <th>Módulo</th>
                <th>Mensagem</th>
                <th class="bc">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) { ?>
                <tr>
                    <td><?php echo Datetools::invertDH($row['LOG_DAT']).' '.$row['LOG_HOR']; ?></td>
                    <td><?php echo $row['USU_NOME']; ?></td>
                    <td><?php echo $row['LOG_IP']; ?></td>
                    <td><?php echo $row['LOG_MOD']; ?></td>
                    <td width="400px"><?php echo $row['LOG_MSG']; ?></td>
                    <td class="bc">
                        <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row['LOG_ID'])); ?>">Registro</a><?php }?>
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
 
<script>dataPicker($('#dtfiltro'));</script>
